GtkFileChooserEntry: fix the computation of 'complete but not unique' and appending...
authorFederico Mena Quintero <federico@novell.com>
Fri, 23 Jan 2009 00:55:07 +0000 (00:55 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Fri, 23 Jan 2009 00:55:07 +0000 (00:55 +0000)
commit7fde4a8542f7c7bb93e8b29df21e3448c42ef79d
treefde62baf019fe6311f8cbc71ee42978bf6a15f1a
parenta8b06ad56103ca7496971abaaeb4f5d85e7c33ed
GtkFileChooserEntry: fix the computation of 'complete but not unique' and appending a '/' to unique directory names
2009-01-22  Federico Mena Quintero  <federico@novell.com>

Fix the computation of "complete but unique" in
GtkFileChooserEntry.  Fix the case where "/" was not appended to a
unique directory name during explicit Tab completion.

* gtk/gtkfilechooserentry.c (maybe_append_separator_to_file):
Return whether anything was appended as well as the new string
itself.
(find_common_prefix): Oops, only turn on
is_complete_not_unique_ret if we had a unique match!
(append_common_prefix): If we appended a directory separator, we
*did* expand the common prefix, so we are not in the "nothing
inserted" case.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22184
ChangeLog
gtk/gtkfilechooserentry.c